﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Visual_Errors_error : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.Params["id"] == null)
        {
            Image1.ImageUrl = "~/Visual/Imagens/error/exception.png";
            lbexception.Text = HttpContext.Current.Session["exception"].ToString();
            lbexception.Visible = true;
            lbtitle.Visible = true;
        }

        if (Request.Params["id"] == "42")
        {
            Image1.ImageUrl = "~/Visual/Imagens/error/error42.png";
        }
    }
}